package com.zhouqinuan.spring.cloud.develop.framework.demo.provider.controller;

import javax.validation.Valid;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import com.zhouqinuan.spring.cloud.develop.framework.demo.provider.feign.UserFeign;
import com.zhouqinuan.spring.cloud.develop.framework.demo.provider.feign.vo.req.GetUserInfoByIdReq;
import com.zhouqinuan.spring.cloud.develop.framework.demo.provider.feign.vo.resp.GetUserInfoByIdResp;
import com.zhouqinuan.spring.cloud.develop.framework.demo.provider.service.UserService;

import io.swagger.annotations.Api;

@Api(tags = "用户模块")
@RestController
public class UserController implements UserFeign {

    @Autowired
    private UserService userService;

    @Override
    public GetUserInfoByIdResp getUserInfoById(@Valid GetUserInfoByIdReq reqVO) throws Exception {
        return userService.getUserInfoById(reqVO);
    }

}
